package com.wise.model.content.enums;

import com.wise.framework.basic.IEnum;
import com.wise.summer.v1.local.content.menutype.ProductMenuTypeValidation;

/**
 * @author shaoming
 * @date 2019-09-09
 */
public enum MenuType implements IEnum<Integer> {
	DEFAULT(0, "默认菜单" , ProductMenuTypeValidation.class),
	PRODUCT(1, "产品菜单" , ProductMenuTypeValidation.class);

	private Integer value;
	private String title;
	private Class validationClass;

	MenuType(Integer value, String title, Class validationClass) {
		this.value = value;
		this.title = title;
		this.validationClass = validationClass;
	}

	@Override
	public Integer value() {
		return value;
	}

	@Override
	public String title() {
		return title;
	}

	public Class getValidationClass() {
		return validationClass;
	}
}
